package com.hbsd.paopaobackend.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hbsd.paopaobackend.common.request.DeleteRequest;
import com.hbsd.paopaobackend.model.domain.Tag;
import com.hbsd.paopaobackend.model.domain.User;
import com.hbsd.paopaobackend.model.request.PageInfo;
import com.hbsd.paopaobackend.model.request.Tag.AddTagRequest;
import com.hbsd.paopaobackend.model.request.Tag.UpdateChildrenTagRequest;

import java.util.List;
import java.util.Map;


/**
* @author zzh
* @description 针对表【tag(标签表)】的数据库操作Service

*/
public interface TagService extends IService<Tag> {

    /**
     * 添加标签
     * @param addTagRequest
     * @param loginUser
     * @return
     */
    Boolean addTag(AddTagRequest addTagRequest, User loginUser);

    /**
     * 获取标签列表
     * @param pageInfo
     * @return
     */
    List<Map<String, Object>> GettagList(PageInfo pageInfo);

    /**
     * 批量更新标签
     * @param updateChildrenTagRequest
     * @return
     */
    boolean updateTagsBatch(UpdateChildrenTagRequest[] updateChildrenTagRequest);

    /**
     * 删除标签
     * @param deleteRequest
     * @return
     */
    boolean deleteTag(DeleteRequest deleteRequest);
}
